package useranswer

import (
	"github.com/gin-gonic/gin"
	"go-interview-forum/api/useranswer"
	"go-interview-forum/middleware"
)

func UserRouter(g *gin.Engine) {
	// 分组

	userAnswer := g.Group("useranswer")

	userAnswer.Use(middleware.TokenAuth)
	// 具体路由配置
	//添加记录方法
	userAnswer.POST("create", useranswer.UserAnswerCreate)
	//刷题记录列表
	userAnswer.POST("list", useranswer.UserAnswerList)
	// 用户刷题默认记录列表
	userAnswer.POST("listAll", useranswer.UserAnswerListAll)
	//刷题记录删除
	userAnswer.POST("delete", useranswer.AnswerDelete)
}
